<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
                      http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.24.xsd"
        objectQuotingStrategy="QUOTE_ONLY_RESERVED_WORDS">

    <changeSet id="add-MATCH_STAGES-1" author="alisitcin">
        <preConditions onFail="MARK_RAN">
            <sqlCheck expectedResult="0">select count(*) from MATCH_STAGES</sqlCheck>
        </preConditions>
        <sql>
            insert into match_stages (MATCH_STAGE_ID, name, code) values (1000, 'Финал', 'final');
            insert into match_stages (MATCH_STAGE_ID, name, code) values (1001, 'Групповая стадия', 'group');
            insert into match_stages (MATCH_STAGE_ID, name, code) values (1002, 'Спарринг', 'single');
        </sql>
        <comment>initial match_stages table</comment>
    </changeSet>

</databaseChangeLog>